]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Remove excess parameter to g_app_info_launch()
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 15 Jul 2017 01:42:06 +0000 (03:42 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 17 Jul 2017 14:24:21 +0000 (16:24 +0200)
Commit 39a840e2c3d added an additional parameter to shell_app_launch().
When adjusting callers, the parameter was also added accidentally to
calls of the confusingly similar g_app_info_launch() ...
Remove those to fix some warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

js/misc/util.js
js/ui/calendar.js
js/ui/components/autorunManager.js
js/ui/remoteSearch.js

index 5abcb54c96f9c0cf8e40a4de19330ad88909d621..bcf8614efe44e7c7f42ce36c6f357af2817df6cf 100644 (file)
@@ -97,7 +97,7 @@ function spawnApp(argv) {
                                                       Gio.AppInfoCreateFlags.SUPPORTS_STARTUP_NOTIFICATION);
 
         let context = global.create_app_launch_context(0, -1);
-        app.launch([], context, false);
+        app.launch([], context);
     } catch(err) {
         _handleSpawnError(argv[0], err);
     }
index f27c894dcbae7e377d6b84f0496702d6b76efed0..298807db91616e062896013ccfbb504dd3dafd21 100644 (file)
@@ -920,7 +920,7 @@ const EventsSection = new Lang.Class({
         let app = this._getCalendarApp();
         if (app.get_id() == 'evolution.desktop')
             app = Gio.DesktopAppInfo.new('evolution-calendar.desktop');
-        app.launch([], global.create_app_launch_context(0, -1), false);
+        app.launch([], global.create_app_launch_context(0, -1));
     },
 
     setDate: function(date) {
index 10afae25f2fd404910317d06f07f9cca94e5ae72..e6ea58358bc845f8b1eb68049518d7d30e4963e9 100644 (file)
@@ -63,8 +63,7 @@ function startAppForMount(app, mount) {
 
     try {
         retval = app.launch(files, 
-                            global.create_app_launch_context(0, -1),
-                            false)
+                            global.create_app_launch_context(0, -1));
     } catch (e) {
         log('Unable to launch the application ' + app.get_name()
             + ': ' + e.toString());
index dab2ad1d8780b198882330c8e951574aaac2ee4e..5e1aadae42db0ba2401c3478a2d139d75d5d5c71 100644 (file)
@@ -299,7 +299,7 @@ const RemoteSearchProvider = new Lang.Class({
         // the provider is not compatible with the new version of the interface, launch
         // the app itself but warn so we can catch the error in logs
         log('Search provider ' + this.appInfo.get_id() + ' does not implement LaunchSearch');
-        this.appInfo.launch([], global.create_app_launch_context(0, -1), false);
+        this.appInfo.launch([], global.create_app_launch_context(0, -1));
     }
 });